package com.sltx.controller;

import com.sltx.controller.base.BaseController;
import com.sltx.dataobject.entity.LinkF;
import com.sltx.dataobject.entity.NodeF;
import com.sltx.dataobject.entity.QypjHealth;
import com.sltx.service.impl.QjcxServiceImpl;
import com.sltx.util.CommonUtils;
import com.sltx.util.Conversion;
import com.sltx.util.PageData;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.*;
//import com.sltx.util.http.CommonMethod;

@Controller
@RequestMapping(value = "/qjcx", produces = MediaType.APPLICATION_JSON_VALUE
		+ ";charset=utf-8")
public class QjcxController extends BaseController {

	/**
	 *
	 */
	private static final long serialVersionUID = 8478842869227861549L;
	@Resource
	private QjcxServiceImpl qjcxService;

	// 企业名片
	/**
	 * 企业基本信息
	 */
	//@RequestMapping(value = "/getRegisterInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getRegisterInfo(HttpServletRequest request) {
		List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName", Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		list = qjcxService.getRegisterInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(list, null, cb);

		return result;
	}

	/**
	 * 企业所在写字楼
	 */
	//@RequestMapping(value = "/getEntOfficeBuildingInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntOfficeBuildingInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getEntOfficeBuildingInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业基因标签
	 */
	//@RequestMapping(value = "/getEntLable", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object entOfficeBuildingInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getEntLable(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 基本信息
	/**
	 * 企业股东及出资信息
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getShareHolderInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getShareHolderInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getShareHolderInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业主要管理人员
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getMainManagerInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getMainManagerInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getMainManagerInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业变更信息
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getRegisterChangeInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getRegisterChangeInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getRegisterChangeInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 附属信息
	/**
	 * 企业股权出质列表
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getEquityPledgedInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEquityPledgedInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "万源市华森房地产开发有限公司");

		map = qjcxService.getEquityPledgedInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 股权出质详情
	 */
	//@RequestMapping(value = "/getEquityPledgedDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEquityPledgedDetailInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		logBefore(logger, "企业股权出质接口 信息 param {rowKey:"
				+ pd.get("rowKey").toString() + "}");

		map.put("getEquityPledgedDetailInfo",
				Conversion.getServiceData("getEquityPledgedDetailInfo", pd)
						.get("RESULTDATA"));

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业动产抵押列表
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getChattelMortgageInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getChattelMortgageInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "永安市大丰米业有限公司");

		map = qjcxService.getChattelMortgageInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 动产抵押详情
	 */
	//@RequestMapping(value = "/getChattelMortgageDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getChattelMortgageDetailInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();
//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());
		logBefore(logger, "企业动产抵押接口 信息 param {rowKey:"
				+ pd.get("rowKey").toString() + "}");

		map.put("getChattelMortgageDetailInfo",
				Conversion.getServiceData("getChattelMortgageDetailInfo", pd)
						.get("RESULTDATA"));

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 企业投资
	/**
	 * 企业对外投资
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getInvestmentAbroadInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getInvestmentAbroadInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "北京用友科技有限公司");

		map = qjcxService.getInvestmentAbroadInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业分支机构
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getBranchInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getBranchInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getBranchInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 高管投资
	/**
	 * 法人代表对外投资
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/lawPersonInvestmentInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object lawPersonInvestmentInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.lawPersonInvestmentInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 法人代表其他公司任职
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getLawPersontoOtherInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getLawPersontoOtherInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getLawPersontoOtherInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 主要管理人员对外投资
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/mainPersonInvestmentInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object mainPersonInvestmentInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.mainPersonInvestmentInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 主要管理人员其他公司任职
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getManagertoOtherInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getManagertoOtherInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();
//
//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getManagertoOtherInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 企业年报
	/**
	 * 企业年报年份
	 */
	//@RequestMapping(value = "/getEntSFCAnnreportList", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntSFCAnnreportList(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));

		logBefore(logger, "企业年报年份接口 信息 param {entName:"
				+ pd.get("entName").toString() + "}");

		JSONObject jo = Conversion.getServiceData("getEntSFCAnnreportList", pd);
		List<Map<String, Object>> list = jo.getJSONArray("RESULTDATA");
		Map<String, Object> pageInfo = (Map<String, Object>) jo.get("PAGEINFO");

		Collections.sort(list, new Comparator<Map<String, Object>>() {
			@Override
			public int compare(Map<String, Object> o1, Map<String, Object> o2) {
				Integer year1 = Integer.parseInt(o1.get("NBYEAR").toString());
				Integer year2 = Integer.parseInt(o2.get("NBYEAR").toString());
				return year2.compareTo(year1);
			}

		});
		map.put("getEntSFCAnnreportList", list);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业年报基本信息
	 *
	 * @return
	 */
	//@RequestMapping(value = "/getEntAnnReportInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");
		// pd.put("reportDate", "2016");

		map = qjcxService.getEntAnnReportInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业年报网站网店信息
	 *
	 * @return
	 */
	//@RequestMapping(value = "/getEntAnnReportWebSiteInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportWebSiteInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();
//
//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");
		// pd.put("reportDate", "2016");

		map = qjcxService.getEntAnnReportWebSiteInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业年报股东及出资信息
	 *
	 * @return
	 */
	//@RequestMapping(value = "/getEntAnnReportInvInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportInvInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");
		// pd.put("reportDate", "2016");

		map = qjcxService.getEntAnnReportInvInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业年报对外投资信息
	 *
	 * @return
	 */
	//@RequestMapping(value = "/getEntAnnReportToInvInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportToInvInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");
		// pd.put("reportDate", "2016");

		map = qjcxService.getEntAnnReportToInvInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业年报资产状况信息
	 *
	 * @return
	 */
	//@RequestMapping(value = "/getEntAnnReportAssetsInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportAssetsInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "北京正坤博达文化传播有限公司");
		// pd.put("reportDate", "2016");

		map = qjcxService.getEntAnnReportAssetsInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业年报对外担保信息
	 *
	 * @return
	 */
	//@RequestMapping(value = "/getEntAnnReportForGuaranteeInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportForGuaranteeInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "临沂市农丰食品有限公司");
		// pd.put("reportDate", "2016");

		map = qjcxService.getEntAnnReportForGuaranteeInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业年报股权变更信息
	 *
	 * @return
	 */
	//@RequestMapping(value = "/getEntAnnReportStockChanageInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportStockChanageInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();
//
//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");
		// pd.put("reportDate", "2016");

		map = qjcxService.getEntAnnReportStockChanageInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业年报社保信息
	 *
	 * @return
	 */
	//@RequestMapping(value = "/getEntAnnReportSocialSecurityInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportSocialSecurityInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");
		// pd.put("reportDate", "2016");

		map = qjcxService.getEntAnnReportSocialSecurityInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 招投标
	/**
	 * 招投标列表
	 */
	//@RequestMapping(value = "/getBiddingInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getBiddingInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));

		logBefore(logger, "企业交易信息接口 信息 param {entName:"
				+ pd.get("entName").toString() + "}");

		map = qjcxService.getBiddingInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 招投标详情
	 */
	//@RequestMapping(value = "/getBiddingDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getBiddingDetailInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		logBefore(logger, "企业招投标接口 信息 param {rowKey:"
				+ pd.get("rowKey").toString() + "}");

		JSONObject jo = Conversion.getServiceData("getBiddingDetailInfo", pd);
		List<Map<String, Object>> list = jo.getJSONArray("RESULTDATA");
		Map<String, Object> pageInfo = (Map<String, Object>) jo.get("PAGEINFO");

		map.put("getBiddingDetailInfo", list);
		map.put("pageInfo", pageInfo);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 资质荣誉
	/**
	 * 企业资质
	 *
	 * @return
	 */
	//@RequestMapping(value = "/getQualifyCertifyInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getQualifyCertifyInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getQualifyCertifyInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业荣誉
	 *
	 * @return
	 */
	//@RequestMapping(value = "/getEntHonorInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntHonorInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getEntHonorInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 知识产权
	/**
	 * 企业专利列表
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getPatentInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getPatentInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "启明星辰信息技术集团股份有限公司");

		logBefore(logger, "专利列表接口 信息 param {entName:"
				+ pd.get("entName").toString() + "}");

		map = qjcxService.getPatentInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 专利申请详情
	 */
	//@RequestMapping(value = "/getPatentDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getPatentDetailInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		logBefore(logger, "企业专利申请接口 信息 param {rowKey:"
				+ pd.get("rowKey").toString() + "}");

		JSONObject jo = Conversion.getServiceData("getPatentDetailInfo", pd);
		List<Map<String, Object>> list = jo.getJSONArray("RESULTDATA");
		Map<String, Object> pageInfo = (Map<String, Object>) jo.get("PAGEINFO");

		map.put("getPatentDetailInfo", list);
		map.put("pageInfo", pageInfo);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业商标列表
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getTrademarkInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getTrademarkInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "启明星辰信息技术集团股份有限公司");

		logBefore(logger, "商标列表接口 信息 param {entName:"
				+ pd.get("entName").toString() + "}");

		map = qjcxService.getTrademarkInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 商标注册详情
	 */
	//@RequestMapping(value = "/getTrademarkDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getTrademarkDetailInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		logBefore(logger, "企业商标注册接口 信息 param {rowKey:"
				+ pd.get("rowKey").toString() + "}");

		JSONObject jo = Conversion.getServiceData("getTrademarkDetailInfo", pd);
		List<Map<String, Object>> list = jo.getJSONArray("RESULTDATA");
		Map<String, Object> pageInfo = (Map<String, Object>) jo.get("PAGEINFO");

		map.put("getTrademarkDetailInfo", list);
		map.put("pageInfo", pageInfo);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业作品著作权信息
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getWorksCopyrightInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getWorksCopyrightInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();
//
//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "启明星辰信息技术集团股份有限公司");

		logBefore(logger, "作品著作接口 信息 param {entName:"
				+ pd.get("entName").toString() + "}");

		map = qjcxService.getWorksCopyrightInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业软件著作权信息
	 *
	 * @param request
	 * @return
	 */
	//@RequestMapping(value = "/getSoftwareCopyrightInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getSoftwareCopyrightInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "启明星辰信息技术集团股份有限公司");

		logBefore(logger, "软件著作接口 信息 param {entName:"
				+ pd.get("entName").toString() + "}");

		map = qjcxService.getSoftwareCopyrightInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 违法警示
	/**
	 * 法院被执行人信息
	 */
	//@RequestMapping(value = "/getBePerformedInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getBePerformedInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "用友网络科技股份有限公司");

		map = qjcxService.getBePerformedInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 法院裁判文书列表
	 */
	//@RequestMapping(value = "/getExecuteJudgmentInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getExecuteJudgmentInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "北京天亚物业开发有限公司");

		map = qjcxService.getExecuteJudgmentInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 裁判文书详情
	 */
	//@RequestMapping(value = "/getExecuteJudgmentDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getExecuteJudgmentDetailInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		logBefore(logger, "企业裁判文书接口 信息 param {rowKey:"
				+ pd.get("rowKey").toString() + "}");

		JSONObject jo = Conversion.getServiceData(
				"getExecuteJudgmentDetailInfo", pd);
		List<Map<String, Object>> list = jo.getJSONArray("RESULTDATA");
		Map<String, Object> pageInfo = (Map<String, Object>) jo.get("PAGEINFO");

		map.put("getExecuteJudgmentDetailInfo", list);
		map.put("pageInfo", pageInfo);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 法院终本案件
	 */
	//@RequestMapping(value = "/getFinalCaseInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getFinalCaseInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "北京金源鸿基创业投资有限公司");

		map = qjcxService.getFinalCaseInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 企业高管失信信息
	 */
	//@RequestMapping(value = "/getEntManagerLostInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntManagerLostInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "张家港市金河纺织有限公司");

		map = qjcxService.getEntManagerLostInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 法院失信人信息
	 */
	//@RequestMapping(value = "/getLostCreditInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getLostCreditInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "北京路城兴航机械制造有限责任公司");

		map = qjcxService.getLostCreditInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 发展历程
	/**
	 * 企业发展纪事
	 */
	//@RequestMapping(value = "/getEntChronicleInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntChronicleInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getEntChronicleInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 信用中国
	/**
	 * 信用中国行政许可
	 */
	//RequestMapping(value = "/getAdministrativeLicensingInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getAdministrativeLicensingInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "围场满族蒙古族自治县隆奎网络科技有限公司");

		map = qjcxService.getAdministrativeLicensingInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 信用中国行政处罚
	 */
	//@RequestMapping(value = "/getAdministrativePenaltyInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getAdministrativePenaltyInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "昌乐国祥塑业有限公司");

		map = qjcxService.getAdministrativePenaltyInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 信用中国守信红名单
	 */
	//@RequestMapping(value = "/getTrustworthyInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getTrustworthyInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "山西三库国际贸易有限公司");

		map = qjcxService.getTrustworthyInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 信用中国失信黑名单
	 */
	//@RequestMapping(value = "/getLostTrustInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getLostTrustInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "江苏民丰担保有限公司");

		map = qjcxService.getLostTrustInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	// 企业项目
	/**
	 * 企业项目
	 */
	//@RequestMapping(value = "/getEntProgramInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntProgramInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("keyword",
				Conversion.codeConversion(pd.get("keyword").toString()));
		pd.put("type", "0");// 企业名称精准查找：0，lcid精准查找：2
		// pd.put("keyword", "龙信数据（北京）有限公司");

		map = qjcxService.getEntProgramInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 新闻舆情
	 */
	//@RequestMapping(value = "/getRiskStormEventInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getRiskStormEventInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));

		logBefore(logger, "企业新闻接口 信息 param {entName:"
				+ pd.get("entName").toString() + "}");

		map.put("getRiskStormEventInfo", qjcxService.getRiskStormEventInfo(pd));

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 关系脉络
	 *
	 * @return
	 */
	//@RequestMapping(value = "/getEntGraphG", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getEntGraphG(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();
//
//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("keyword",
				Conversion.codeConversion(pd.get("keyword").toString()));

		logBefore(logger, "企业关系脉络接口 信息 param {keyword:"
				+ pd.get("keyword").toString() + "}");
		JSONObject jsonObject = Conversion.getServiceData("getEntGraphG", pd);

		JSONObject JsonR = jsonObject.getJSONObject("RESULTDATA");
		// 节点
		JSONArray jsonArray = JsonR.getJSONArray("NODES");
		List<NodeF> listNodes = new ArrayList<NodeF>();
		NodeF nf = null;
		for (int i = 0; i < jsonArray.size(); i++) {
			nf = new NodeF();
			JSONObject jsonObject2 = (JSONObject) jsonArray.opt(i);
			JSONObject jAttr = jsonObject2.getJSONObject("ATTIBUTEMAP");
			Map<String, Object> mapAttr = CommonUtils.parserToMap(jAttr);
			nf.setAttibuteMap(mapAttr);
			nf.setId(jsonObject2.getString("ID"));
			nf.setType(jsonObject2.getString("TYPE"));
			nf.setName(jsonObject2.getString("NAME"));
			listNodes.add(nf);
		}
		// 关系
		JSONArray jsonArrayR = JsonR.getJSONArray("LINKS");
		List<LinkF> listRes = new ArrayList<LinkF>();
		LinkF link = null;
		for (int i = 0; i < jsonArrayR.size(); i++) {
			link = new LinkF();
			JSONObject jsonObject2 = (JSONObject) jsonArrayR.opt(i);
			link.setId(jsonObject2.getString("ID"));
			link.setName(jsonObject2.getString("NAME"));
			link.setFrom(jsonObject2.getString("FROM"));
			link.setSource(jsonObject2.getString("FROM"));
			link.setTo(jsonObject2.getString("TO"));
			link.setTarget(jsonObject2.getString("TO"));
			Map<String, Object> attMap = CommonUtils.parserToMap(jsonObject2
					.getJSONObject("ATTIBUTEMAP"));
			link.setAttibuteMap(attMap);
			listRes.add(link);
		}

		map.put("nodes", listNodes);
		map.put("links", listRes);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 人才需求/网络招聘
	 */
	//@RequestMapping(value = "/getRecruitmentInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getRecruitmentInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		pd.put("entName",
				Conversion.codeConversion(pd.get("entName").toString()));
		// pd.put("entName", "龙信数据（北京）有限公司");

		map = qjcxService.getRecruitmentInfo(pd);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 招聘详情
	 */
	//@RequestMapping(value = "/getRecruitmentDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE";charset=utf-8")
	@ResponseBody
	public Object getRecruitmentDetailInfo(HttpServletRequest request) {
		Map<String, Object> map = new HashMap<String, Object>();
		PageData pd = this.getPageData();

//		HttpSession session = request.getSession();
//		User user = (User) session.getAttribute(Const.SESSION_USER);
//		pd.put("regionCode", user.getRegionCodeView());

		logBefore(logger, "企业招聘接口 信息 param {rowKey:"
				+ pd.get("rowKey").toString() + "}");

		JSONObject jo = Conversion.getServiceData("getRecruitmentDetailInfo",
				pd);
		List<Map<String, Object>> list = jo.getJSONArray("RESULTDATA");
		Map<String, Object> pageInfo = (Map<String, Object>) jo.get("PAGEINFO");

		map.put("getRecruitmentDetailInfo", list);
		map.put("pageInfo", pageInfo);

		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, map, cb);

		return result;
	}

	/**
	 * 最短路径 -------------------------------begin------------------------
	 *
	 * @param response
	 * @param key
	 * @param request
	 * @return
	 */

//	@RequestMapping({ "graph/draw/getGSNames.do" })
//	@ResponseBody
//	public Object getGSNames(HttpServletResponse response, String key,
//							 HttpServletRequest request) {
//		if ((key == null) || ("".equals(key.trim()))) {
//			return null;
//		}
//
//		key = key.trim();
//
////		LOG.info("查询条件:" + key);
//		List list = CommonMethod.getEnterpriseList(key);
////		LOG.info("返回" + list.size() + "条数据！");
//		Map<String, Object> resMap = new HashMap<String, Object>();
//		resMap.put("List", list);
//		// CommonMethod.gson2Jsp(response, resMap);
//
//		Object cb = request.getParameter("callback");
//		String result = Conversion.convertJsonString(null, resMap, cb);
//		return result;

		// return null;
//	}
//
//	@RequestMapping({ "graph/draw/index.do" })
//	public String index(String id, boolean play, boolean navigation,
//						Model model, String companyname, String nodeIds) {
//		model.addAttribute("companyname", companyname);
//
//		model.addAttribute("nodeIds", nodeIds);
//		return "/netWorking/center.jsp";
//	}
//
//	@RequestMapping({ "graph/search/checkGSNames.do" })
//	@ResponseBody
//	public Object checkGSNames(HttpServletResponse response, String entName,
//							   HttpServletRequest request) {
//		List listS = new ArrayList();
//		List listF = new ArrayList();
//		if (StringUtils.isNotEmpty(entName)) {
//			String[] arr = entName.split(",");
//			for (int i = 0; i < arr.length; i++) {
//				if (CommonMethod.checkEnterprise(arr[i]))
//					listS.add(arr[i]);
//				else {
//					listF.add(arr[i]);
//				}
//			}
//		}
//		Map map = new HashMap();
//		map.put("check", listS);
//		map.put("unCheck", listF);
//
//		Object cb = request.getParameter("callback");
//		String result = Conversion.convertJsonString(null, map, cb);
//		return result;
//
//		/*
//		 * CommonMethod.gson2Jsp(response, map); return null;
//		 */
//	}
//
//	@RequestMapping({ "enter/getEntRelateInfo.do" })
//	@ResponseBody
//	public Object getEntRelateInfo(HttpServletResponse response,
//								   String entName, int type, HttpServletRequest request) {
//		if ((entName == null) || ("".equals(entName.trim()))) {
//			return null;
//		}
//		entName = entName.trim();
//
////		LOG.info("查询条件:" + entName);
//		Map allData = CommonMethod.getEnterRegisterInfo(entName, type);
////		LOG.info("返回数据！" + allData);
//
//		Object cb = request.getParameter("callback");
//		String result = Conversion.convertJsonString(null, allData, cb);
//		return result;
//
//		/*
//		 * CommonMethod.gson2Jsp(response, allData); return null;
//		 */
//	}
//
//	/**
//	 * model=44&typeIds=&attIds=R102;R101;R107;R108;R104;R103;R105;R106&level=6&
//	 * nodeIds=龙信数据（北京）有限公司;腾讯科技（深圳）有限公司&play=false
//	 *
//	 * @param response
//	 * @param request
//	 * @param typeIds
//	 * @param attIds
//	 * @param level
//	 * @param companyname
//	 * @param value
//	 * @param nodeIds
//	 * @param dbType
//	 * @param model
//	 * @return
//	 * @throws Exception
//	 */
//	@RequestMapping({ "graph/draw/getRelationModel.do",
//			"en/graph/draw/getRelationModel.do" })
//	@ResponseBody
//	public Object name(HttpServletResponse response,
//					   HttpServletRequest request, String typeIds, String attIds,
//					   Integer level, String companyname, String value, String nodeIds,
//					   String dbType, String model) throws Exception {
//		Map mapReq = new HashMap();
//		Map mapRes = new HashMap();
//		mapReq.put("attIds", attIds);
//		mapReq.put("level", level);
//		mapReq.put("type", "GS");
//
//		mapReq.put("model", model);
//		System.out.println(URLDecoder.decode(nodeIds, "UTF-8"));
//		System.out.println(mapReq);
//		try {
//			mapReq.put("value", URLDecoder.decode(nodeIds, "UTF-8"));
//		} catch (Exception e) {
//			e.printStackTrace();
//		}
//
//		Long start = Long.valueOf(System.currentTimeMillis());
//
//		CommonMethod.proGsqlRelatData(mapReq, mapRes);
//		Long end = Long.valueOf(System.currentTimeMillis());
////		LOG.info("调用数据中心接口并处理数据所耗时间：" + (end.longValue() - start.longValue())
////				/ 1000L + "s");
//		System.out.println(mapReq);
//
//		Object cb = request.getParameter("callback");
//		String result = Conversion.convertJsonString(null, mapRes, cb);
//		return result;
//		/*
//		 * CommonMethod.gson2Jsp(response, mapRes); return null;
//		 */
//	}

	/** 最短路径 -------------------------------end------------------------ */

	/**
	 * 企业评价接口
	 * 能力评价
	 * @param response
	 * @param request
	 * @return
	 */
	//@RequestMapping("/getQypj")
	@ResponseBody
	public String getEntEvaluatingIndexInfo(HttpServletResponse response,
											HttpServletRequest request) {

		PageData pd =  this.getPageData();
		Object entName = pd.get("entName");
		if(entName ==null || entName.equals("")){
			pd.put("entName", "腾讯科技（上海）有限公司");
		}else{
			pd.put("entName", Conversion.codeConversion(entName.toString()));
		}
		JSONObject jo = Conversion.getServiceData("getEntEvaluatingIndexInfo",
				pd);

		List<Map<String, Object>> list = jo.getJSONArray("RESULTDATA");
		for(Map<String,Object> map : list){
			QypjHealth qypjHealth = new QypjHealth();
			qypjHealth.setRatings(map.get("OVERALL_GRADE").toString());
			map.put("OVERALL_HEALTH", qypjHealth.getHealth());
		}
		//Map<String, Object> pageInfo = (Map<String, Object>) jo.get("PAGEINFO");
		Map<String,Object> mapRes = new HashMap<String,Object>();
		mapRes.put("getEntEvaluatingIndexInfo", list);
		//mapRes.put("pageInfo", pageInfo);
		Object cb = request.getParameter("callback");
		String result = Conversion.convertJsonString(null, mapRes, cb);
		return result;
	}


	//桥接接口
	public static Object interfaceDemo(String path, String data) {
		String result = "";

		try {
			URL url = new URL(path);
			HttpURLConnection conn = (HttpURLConnection)url.openConnection();
			PrintWriter out = null;
			conn.setRequestProperty("accept", "*/*");
			conn.setRequestProperty("connection", "Keep-Alive");
			conn.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)");
			conn.setDoOutput(true);
			conn.setDoInput(true);
			out = new PrintWriter(conn.getOutputStream());
			out.print(data);
			out.flush();
			InputStream is = conn.getInputStream();
			BufferedReader br = new BufferedReader(new InputStreamReader(is));

			String str;
			while((str = br.readLine()) != null) {
				result = result + str;
				System.out.println(result);
			}

			is.close();
			conn.disconnect();
		} catch (Exception var9) {
			var9.printStackTrace();
		}

		return result;
	}

	// 企业名片
	/**
	 * 企业基本信息
	 */
	@RequestMapping(value = "/getRegisterInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getRegisterInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getRegisterInfo?",data);
	}

	/**
	 * 企业所在写字楼
	 */
	@RequestMapping(value = "/getEntOfficeBuildingInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntOfficeBuildingInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntOfficeBuildingInfo?",data);
	}

	/**
	 * 企业基因标签
	 */
	@RequestMapping(value = "/getEntLable", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object entOfficeBuildingInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntLable?",data);
	}

	// 基本信息
	/**
	 * 企业股东及出资信息
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getShareHolderInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getShareHolderInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getShareHolderInfo?",data);
	}

	/**
	 * 企业主要管理人员
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getMainManagerInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getMainManagerInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getMainManagerInfo?",data);
	}

	/**
	 * 企业变更信息
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getRegisterChangeInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getRegisterChangeInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getRegisterChangeInfo?",data);
	}

	// 附属信息
	/**
	 * 企业股权出质列表
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getEquityPledgedInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEquityPledgedInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEquityPledgedInfo?",data);
	}

	/**
	 * 股权出质详情
	 */
	@RequestMapping(value = "/getEquityPledgedDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEquityPledgedDetailInfo(@RequestParam(required = false) String rowKey) {
		String data = "rowKey="+ rowKey;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEquityPledgedDetailInfo?",data);
	}
	/**
	 * 企业动产抵押列表
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getChattelMortgageInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getChattelMortgageInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getChattelMortgageInfo?",data);
	}

	/**
	 * 动产抵押详情
	 */
	@RequestMapping(value = "/getChattelMortgageDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getChattelMortgageDetailInfo(@RequestParam(required = false) String rowKey) {
		String data = "rowKey="+ rowKey;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getChattelMortgageDetailInfo?",data);
	}

	// 企业投资
	/**
	 * 企业对外投资
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getInvestmentAbroadInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getInvestmentAbroadInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getInvestmentAbroadInfo?",data);
	}

	/**
	 * 企业分支机构
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getBranchInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getBranchInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getBranchInfo?",data);
	}

	// 高管投资
	/**
	 * 法人代表对外投资
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/lawPersonInvestmentInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object lawPersonInvestmentInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/lawPersonInvestmentInfo?",data);
	}

	/**
	 * 法人代表其他公司任职
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getLawPersontoOtherInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getLawPersontoOtherInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getLawPersontoOtherInfo?",data);
	}

	/**
	 * 主要管理人员对外投资
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/mainPersonInvestmentInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object mainPersonInvestmentInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/mainPersonInvestmentInfo?",data);
	}

	/**
	 * 主要管理人员其他公司任职
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getManagertoOtherInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getManagertoOtherInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getManagertoOtherInfo?",data);
	}

	// 企业年报
	/**
	 * 企业年报年份
	 */
	@RequestMapping(value = "/getEntSFCAnnreportList", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntSFCAnnreportList(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntSFCAnnreportList?",data);
	}

	/**
	 * 企业年报基本信息
	 *
	 * @return
	 */
	@RequestMapping(value = "/getEntAnnReportInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportInfo(@RequestParam(required = false) String entName,@RequestParam(required = false) String reportDate) {
		String data = "entName="+ entName + "&reportDate=" + reportDate;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntAnnReportInfo?",data);
	}

	/**
	 * 企业年报网站网店信息
	 *
	 * @return
	 */
	@RequestMapping(value = "/getEntAnnReportWebSiteInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportWebSiteInfo(@RequestParam(required = false) String entName,@RequestParam(required = false) String reportDate) {
		String data = "entName="+ entName+ "&reportDate=" + reportDate;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntAnnReportWebSiteInfo?",data);
	}

	/**
	 * 企业年报股东及出资信息
	 *
	 * @return
	 */
	@RequestMapping(value = "/getEntAnnReportInvInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportInvInfo(@RequestParam(required = false) String entName,@RequestParam(required = false) String reportDate) {
		String data = "entName="+ entName+ "&reportDate=" + reportDate;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntAnnReportInvInfo?",data);
	}

	/**
	 * 企业年报对外投资信息
	 *
	 * @return
	 */
	@RequestMapping(value = "/getEntAnnReportToInvInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportToInvInfo(@RequestParam(required = false) String entName,@RequestParam(required = false) String reportDate) {
		String data = "entName="+ entName+ "&reportDate=" + reportDate;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntAnnReportToInvInfo?",data);
	}

	/**
	 * 企业年报资产状况信息
	 *
	 * @return
	 */
	@RequestMapping(value = "/getEntAnnReportAssetsInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportAssetsInfo(@RequestParam(required = false) String entName,@RequestParam(required = false) String reportDate) {
		String data = "entName="+ entName+ "&reportDate=" + reportDate;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntAnnReportAssetsInfo?",data);
	}

	/**
	 * 企业年报对外担保信息
	 *
	 * @return
	 */
	@RequestMapping(value = "/getEntAnnReportForGuaranteeInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportForGuaranteeInfo(@RequestParam(required = false) String entName,@RequestParam(required = false) String reportDate) {
		String data = "entName="+ entName+ "&reportDate=" + reportDate;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntAnnReportForGuaranteeInfo?",data);
	}

	/**
	 * 企业年报股权变更信息
	 *
	 * @return
	 */
	@RequestMapping(value = "/getEntAnnReportStockChanageInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportStockChanageInfo(@RequestParam(required = false) String entName,@RequestParam(required = false) String reportDate) {
		String data = "entName="+ entName+ "&reportDate=" + reportDate;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntAnnReportStockChanageInfo?",data);
	}

	/**
	 * 企业年报社保信息
	 *
	 * @return
	 */
	@RequestMapping(value = "/getEntAnnReportSocialSecurityInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntAnnReportSocialSecurityInfo(@RequestParam(required = false) String entName,@RequestParam(required = false) String reportDate) {
		String data = "entName="+ entName+ "&reportDate=" + reportDate;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntAnnReportSocialSecurityInfo?",data);
	}

	// 招投标
	/**
	 * 招投标列表
	 */
	@RequestMapping(value = "/getBiddingInfo", produces = MediaType.APPLICATION_JSON_VALUE + ";charset=utf-8")
	@ResponseBody
	public Object getBiddingInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getBiddingInfo?",data);

	}

	/**
	 * 招投标详情
	 */
	@RequestMapping(value = "/getBiddingDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getBiddingDetailInfo(@RequestParam(required = false) String rowKey) {
		String data = "rowKey="+ rowKey;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getBiddingDetailInfo?",data);
	}

	// 资质荣誉
	/**
	 * 企业资质
	 *
	 * @return
	 */
	@RequestMapping(value = "/getQualifyCertifyInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getQualifyCertifyInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getQualifyCertifyInfo?",data);
	}

	/**
	 * 企业荣誉
	 *
	 * @return
	 */
	@RequestMapping(value = "/getEntHonorInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntHonorInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntHonorInfo?",data);
	}

	// 知识产权
	/**
	 * 企业专利列表
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getPatentInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getPatentInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getPatentInfo?",data);
	}

	/**
	 * 专利申请详情
	 */
	@RequestMapping(value = "/getPatentDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getPatentDetailInfo(@RequestParam(required = false) String rowKey) {
		String data = "rowKey="+ rowKey;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getPatentDetailInfo?",data);
	}

	/**
	 * 企业商标列表
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getTrademarkInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getTrademarkInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getTrademarkInfo?",data);
	}

	/**
	 * 商标注册详情
	 */
	@RequestMapping(value = "/getTrademarkDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getTrademarkDetailInfo(@RequestParam(required = false) String rowKey) {
		String data = "rowKey="+ rowKey;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getTrademarkDetailInfo?",data);
	}

	/**
	 * 企业作品著作权信息
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getWorksCopyrightInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getWorksCopyrightInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getWorksCopyrightInfo?",data);
	}

	/**
	 * 企业软件著作权信息
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/getSoftwareCopyrightInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getSoftwareCopyrightInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getSoftwareCopyrightInfo?",data);
	}

	// 违法警示
	/**
	 * 法院被执行人信息
	 */
	@RequestMapping(value = "/getBePerformedInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getBePerformedInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getBePerformedInfo?",data);
	}

	/**
	 * 法院裁判文书列表
	 */
	@RequestMapping(value = "/getExecuteJudgmentInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getExecuteJudgmentInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getExecuteJudgmentInfo?",data);
	}

	/**
	 * 裁判文书详情
	 */
	@RequestMapping(value = "/getExecuteJudgmentDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getExecuteJudgmentDetailInfo(@RequestParam(required = false) String rowKey) {
		String data = "rowKey="+ rowKey;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getExecuteJudgmentDetailInfo?",data);
	}

	/**
	 * 法院终本案件
	 */
	@RequestMapping(value = "/getFinalCaseInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getFinalCaseInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getFinalCaseInfo?",data);
	}

	/**
	 * 企业高管失信信息
	 */
	@RequestMapping(value = "/getEntManagerLostInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntManagerLostInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntManagerLostInfo?",data);
	}

	/**
	 * 法院失信人信息
	 */
	@RequestMapping(value = "/getLostCreditInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getLostCreditInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getLostCreditInfo?",data);
	}

	// 发展历程
	/**
	 * 企业发展纪事
	 */
	@RequestMapping(value = "/getEntChronicleInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntChronicleInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntChronicleInfo?",data);
	}

	// 信用中国
	/**
	 * 信用中国行政许可
	 */
	@RequestMapping(value = "/getAdministrativeLicensingInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getAdministrativeLicensingInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getAdministrativeLicensingInfo?",data);
	}

	/**
	 * 信用中国行政处罚
	 */
	@RequestMapping(value = "/getAdministrativePenaltyInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getAdministrativePenaltyInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getAdministrativePenaltyInfo?",data);
	}

	/**
	 * 信用中国守信红名单
	 */
	@RequestMapping(value = "/getTrustworthyInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getTrustworthyInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getTrustworthyInfo?",data);
	}

	/**
	 * 信用中国失信黑名单
	 */
	@RequestMapping(value = "/getLostTrustInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getLostTrustInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getLostTrustInfo?",data);
	}

	// 企业项目
	/**
	 * 企业项目
	 */
	@RequestMapping(value = "/getEntProgramInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntProgramInfo(@RequestParam(required = false) String keyword) {
		String data = "keyword="+ keyword;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntProgramInfo?",data);
	}

	/**
	 * 新闻舆情
	 */
	@RequestMapping(value = "/getRiskStormEventInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getRiskStormEventInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getRiskStormEventInfo?",data);
	}

	/**
	 * 关系脉络
	 *
	 * @return
	 */
	@RequestMapping(value = "/getEntGraphG", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getEntGraphG(@RequestParam(required = false) String keyword) {
		String data = "keyword="+ keyword;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getEntGraphG?",data);
	}

	/**
	 * 人才需求/网络招聘
	 */
	@RequestMapping(value = "/getRecruitmentInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getRecruitmentInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getRecruitmentInfo?",data);
	}

	/**
	 * 招聘详情
	 */
	@RequestMapping(value = "/getRecruitmentDetailInfo", produces = MediaType.APPLICATION_JSON_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public Object getRecruitmentDetailInfo(@RequestParam(required = false) String rowKey) {
		String data = "rowKey="+ rowKey;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getRecruitmentDetailInfo?",data);
	}


	/** 最短路径 -------------------------------end------------------------ */

	/**
	 * 企业评价接口
	 * 能力评价
	 * @param response
	 * @param request
	 * @return
	 */
	@RequestMapping("/getQypj")
	@ResponseBody
	public Object getEntEvaluatingIndexInfo(@RequestParam(required = false) String entName) {
		String data = "entName="+ entName;
		return interfaceDemo("http://192.202.58.9:18052/sjs_product/qjcx/getQypj?",data);
	}

}
